1 <?php
2     include(
"../includes/config.php");
3     session_start();
4     
if(isset($_SESSION['manufacturer_login'])) {
5         
if($_SESSION['manufacturer_login'] == true) {
6             $query_selectDistributor =
"SELECT * FROM distributor";
7             $result_selectDistributor = mysqli_query($con,$query_selectDistributor);
8         }
9         
else {
10             header(
'Location:../index.php');
11         }
12     }
13     
else {
14         header(
'Location:../index.php');
15     }
16 ?>
17 <!DOCTYPE html>
18 <html>
19 <head>
20     <title> View Distributor </title>
21     <link rel=
"stylesheet" href="../includes/main_style.css" >
22 </head>
23 <body>
24     <?php
25         include(
"../includes/header.inc.php");
26         include(
"../includes/nav_manufacturer.inc.php");
27         include(
"../includes/aside_manufacturer.inc.php");
28     ?>
29     <section>
30         <h1>View Distributor</h1>
31         <form action=
"" method="POST" class="form">
32         <table
class="table_displayData">
33             <tr>
34                 <th>Sr. No.</th>
35                 <th>Name</th>
36                 <th>Email</th>
37                 <th>Phone</th>
38                 <th>Address</th>
39             </tr>
40             <?php $i=
1; while($row_selectDistributor = mysqli_fetch_array($result_selectDistributor)) { ?>
41             <tr>
42                 <td> <?php echo $i; ?> </td>
43                 <td> <?php echo $row_selectDistributor[
'dist_name']; ?> </td>
44                 <td> <?php echo $row_selectDistributor[
'dist_email']; ?> </td>
45                 <td> <?php echo $row_selectDistributor[
'dist_phone']; ?> </td>
46                 <td> <?php echo $row_selectDistributor[
'dist_address']; ?> </td>
47             </tr>
48             <?php $i++; } ?>
49         </table>
50         </form>
51     </section>
52     <?php
53         include(
"../includes/footer.inc.php");
54     ?>
55 </body>
56 </html>


Gõ tìm kiếm nhanh...